package com.deam.imsdk.utils;

/**
 * Created by Administrator on 2018/5/8.
 */

public class Constants {
    public static final String USER_ACTION = "userAction";
    public static final int CODE_OK = 1;
    public static final int CODE_ERROR = -1;
    public static final int CODE_PAST_INFO = 2;//过期登录信息
    public static final String CODE = "c";                  //返回标记
    public static final String MSG = "msg";                   //返回信息
    public static final String ERROR_NONET = "请检查网络是否正常"; //网络错误信息
    public static final String REQUEST = "rc";                   //返回信息
        public static final String HostIp = "118.190.51.52";
//    public static final String HostIp = "192.168.10.223";
    public static final int IM_PORT = 4010;        //消息通讯接口
    public static final int ACTION_CONNECT_UPDATE = 100;
    //心跳动作
    public static final int ACTION_HEART_BEAT1 = 101;
    //心跳阶段
    public static final String HB = "t";
    //心跳请求
    public static final int HB_REQUEST = 1;
    //心跳回执
    public static final int HB_RESULT = 2;

    //广播数据key
    public static final String IMS_MESSAGE = "im_msg";
    //接收消息的广播地址
    public static final String IMS_BRPULL_STRING = "com.deam.imsdk.receiver.IMPullReceiver";
    //发送消息的广播地址
    public static final String IMS_BRPUSH_STRING = "com.deam.imsdk.receiver.IMPushReceiver";
    //登录动作
    public static final int ACTION_LOGING = 4001;
    //发送文本消息
    public static final int ACTION_TYPE_TEXT = 4051;
    //获取会话列表
    public static final int ACTION_CONSTANTS = 4002;
    //退出操作
    public static final int ACTION_EXIT = 3000;
    //有用户改变状态
    public static final int ACTION_UPDATE_START = 4021;
    //接受人id
    public static final String EL_ACCEPTOR_ID = "acceptorId";
    //发送人id
    public static final String EL_SENDER_ID = "senderId";
    //发送内容
    public static final String EL_CONTEXT = "context";
    public static final String EL_IDENTIFYING = "identifying";
    public static final String EL_TIME = "time";
    public static final String EL_TYPE = "type";


}
